package lesson14;

public class Car {
	String model;
	short maxSpeed;
	short currentSpeed;
	String color;
	byte gear;
	Person owner;
	static int count;//change
	
	void accelerate()
	{
		if(currentSpeed + 10 >= maxSpeed)
		{
			currentSpeed = maxSpeed;
		}
		else 
		{
			currentSpeed+=10;
		}
	}
	void changeGearUp()
	{
		gear++;
	}
	void changeGearDown()
	{
		if(currentSpeed == 1)
		{
			System.out.println("It is down level of gear!");
		}
		else 
		gear--;
	}
	void changeGear(int nextGeear)
	{
		nextGeear = gear;
	}
	void changeColor(String newColor)
	{
		newColor = color;
	}
}
